home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Just Call Me Internet
/
Just Call Me Internet.iso
/
com
/
othernet
/
fidonet
/
msgcpy20
/
msgcopy.doc
< prev
next >
Wrap
Text File
|
1995-04-27
|
6KB
|
150 lines
Msgcopy is a utility to copy/move messages from one base to another
it can change the from: & to: name of the user and also the destination
network address , you can also append text to the beginning of a message
being processed.
You can tell msgcopy to only test messages reaching certain conditions ,
these conditions are from name , to name , subject text or evan message
text.
I currently use msgcopy to take several internet email lists , copying the
messages to the relevant echomail base on my BBS and putting the replies
back into email to send them on their merry way , with an internet destination
appended to the start of the message so Stuffit can process the message.
Any copied/moved message is marked as a LOCAL message , this along with
the update of the messages timestamp , ensures all the copied/moved mail
can be re-exported should you wish to do so.
You run Msgcopy by passing it a parameter , this can be
1) SCAN , This updates all the message pointers put doesn't export/import
any messages , I suggest you use this when you first start a new
base , make sure you have exported all your messages before adding
a new base otherwise they may be missed.
2) MACRO, This will run the commands listed under that Macro in the
msgcopy.CFG file , see below for details , you can put either a
full macro name or a partial one , if a partial one is used then
any macro starting with that piece of text will be run.
e.g. , you can have EXPORT.GEMLIST and EXPORT.JAGUAR.LIST as
macros , runnning MSGCOPY.TTP EXPORT. will run both sets of these
macro commands.
3) ALL , |This will run ALL macros listed in the msgcopy.CFG file in the
or no |order they appear in.
parameter |
MsgCopy Configuration commands
==============================
All Macro Labels start wlth #<macro name> and the macro end should be just
a # symbol on it's own , running msgcopy with the parameter ALL or no
parameter will run all available macros as they are listed by the
.CFG file.
FROM=<message base path and name (No ext.)>
Informs MSGCOPY which base you want to read from.
TO=<message base path and name (No ext.)>
Informs MSGCOPY which base you want to write to , leave this line out
if you only want to kill messages from a particular user or containing
a particular piece of text.
STATE=<type>
Three states are available COPY, MOVE and KILL , they are pretty self
explanitory.
IF.TO=<text>
The name given in the text after the command will be tested
against the To: name in the message header , if matched then action
will be taken on this message.
Case is not important
IF.FROM=<text>
The name given in the text after the command will be tested
against the from: name in the message header , if matched then action
will be taken on this message.
Case is not important
IF.SUBJECT=<text>
The text given in the text after the command will be tested
against the subject in the message header , if matched then action
will be taken on this message.
Case is not important
IF.TEXT=<text>
The text given in the text after the command will be tested
against the message in the message file , if matched then action
will be taken on this message.
Case is not important
UPDATE.FROM.INDEX
The .HDR file of the message base being read will be flagged as
read to stop messages already scanned being re-read.
UPDATE.TO.INDEX
The .HDR file of the message base being written to will be flagged as
read to stop messages already scanned being re-read.
UPDATE.BOTH.INDEX
The .HDR file of the message base being written and ALSO the one
being read will flagged as read to stop messages already scanned being
re-read.
The Above 3 commands might seem redundant , surely you would always want the
index files to be upto-date for BOTH message bases , in MOST cases yes you
would be right.
BUT , in two cases you might want the base to be re-scanned , for instance
you may want to re-copy certain messages copied into the GEMLIST echo on
your system for example , into a seperate echo if they contain a subject or
text item you are specifically interested in , so in this case you will only
want to update the FROM index or you may want to copy messages from the 1st
destination echo into still another destination echo so you would want to
only update the FROM index.
As long as you update BOTH the message areas index files using your last
copy/move macro for that area then all will work fine, forgetting to do this
may cause messages to be re-copied again next time.
HEADERTEXT
Any Text Following this command will be added to the top of the message
being copied or moved.
You can use the sub-macro @user.from in the text , this will take the
user's name that wrote the original message and insert it in the text.
TEXTEND
This marks the end of the text above
ADDRESS.TO=<address>
This redirects the To: address in the message header to that address.
NAME.TO=<name>
This Changes the To: name in the message header to be that name
KILLSENT
Used with the EMAIL option this forces the Killsent flag to be set
so mail will be deleted when the mail tosser scans/packs the base.